﻿import React from 'react';
import { Form, Input, Row, Col, Button, DatePicker,Icon, Select,Spin } from 'antd';
import './index.less'
import classNames from 'classnames';
const FormItem = Form.Item;
const Option = Select.Option;

class ProfileCard extends React.Component {
	constructor(props){
		super(props);
	}

	render() {
    let { profile, loading } = this.props;
    const container = (
      <Form horizontal>
        <Row gutter={16}>
          <Col sm={1}>
          </Col>
          <Col sm={10}>
            <FormItem	label="学号"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.id                 }/></FormItem>
            <FormItem	label="性别"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.sex                }/></FormItem>
            <FormItem	label="政治面貌"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.political      }/></FormItem>
            <FormItem	label="外语语种"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.foreignLanguage}/></FormItem>
            <FormItem	label="联系电话"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.telephone      }/></FormItem>
            <FormItem	label="学院名称"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.collegeName      }/></FormItem>
            <FormItem	label="学制"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.studyLife          }/></FormItem>
            <FormItem	label="毕业时间"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.outDate        }/></FormItem>
            <FormItem	label="邮政编码"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.zipCode        }/></FormItem>
            <FormItem	label="QQ"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.qq                   }/></FormItem>
            <FormItem	label="微信"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.wxCode             }/></FormItem>
            <FormItem	label="就业协议号"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.employCode   }/></FormItem>
          </Col>
          <Col sm={10}>
            <FormItem	label="姓名"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.name         }/></FormItem>
            <FormItem	label="出生年月"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.birthday   }/></FormItem>
            <FormItem	label="民族"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.nation       }/></FormItem>
            <FormItem	label="籍贯"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.homeplace    }/></FormItem>
            <FormItem	label="毕业院校"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.university }/></FormItem>
            <FormItem	label="专业名称"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.majorName      }/></FormItem>
            <FormItem	label="学历"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.degree       }/></FormItem>
            <FormItem	label="入学时间"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.enterDate    }/></FormItem>
            <FormItem	label="通讯地址"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.address    }/></FormItem>
            <FormItem	label="应聘方式"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.applyType    }/></FormItem>
            <FormItem	label="手机号码"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.mobile         }/></FormItem>
            <FormItem	label="电子邮箱"	labelCol={{ span: 8 }}	wrapperCol={{ span: 16 }}><Input size="default" value={profile.email        }/></FormItem>
          </Col>
          <Col sm={3}>
          </Col>
        </Row>
      </Form>
    );
		return (
      <Spin spinning={loading}>{container}</Spin>
		);
	}
}

ProfileCard = Form.create()(ProfileCard);

export default ProfileCard;
